<?php

/**
 * @author hequan
 * @date    2012-06-05 14:35:36
 * @todo    切客日志
 *
  $data = array('channel_id' => $channel_id, 'tid' => $tid );  //渠道ID,外部订单ID
  $queue_resault = do_queue('qiekelog', 'add', $data, 'w');
 *
 */
class qiekelogQueueProcessor extends BaseQueueProcessor 
{
    public function parse() 
    {
        // 入口处打印入口数据
        $this->businessLog(json_encode($this->data));
        $data = $this->data['data']['data'];
        $original_data = $data;
        $tid = $data['tid'];   //外部订单
        $channel_id = $data['channel_id'];  //渠道ID
        // 获取渠道授权信息
        $this->channel_id = $data['channel_id'];
        $this->errorLog("channel_id NOT match, please check it!");
        
        $this->debugLog("tid = {$tid} channel_id = {$channel_id}");

        return true;
    }
}
